package com.yinhai.activity;


import android.app.Activity;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

/**
 * AboutActivity （关于）
 * 
 * @author lixh
 */
public class AboutActivity extends Activity {

	/*
	 * (non-Javadoc)
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.more_about);

		try {
		PackageInfo info= this.getPackageManager().getPackageInfo(this.getPackageName(), 0);
		TextView textView=(TextView) this.findViewById(R.id.current_version);
		textView.setText("Version "+info.versionName);
		textView=(TextView) this.findViewById(R.id.current_build);
		textView.setText("Build "+info.versionCode);
		} catch (NameNotFoundException e) {
			e.printStackTrace();
		}
	}

	public void doBack(View view) {
		onBackPressed();
	}

}
